package com.burgeon.backend.SHOPBACKEND.service;

import com.burgeon.backend.SHOPBACKEND.entity.FAB.FABRelevance;
import com.burgeon.backend.SHOPBACKEND.entity.FAB.FabEntity;
import com.burgeon.backend.SHOPBACKEND.service.ex.ErrorDataException;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

public interface FABservice {

    FABRelevance getRelevance(String code, String account);

    FabEntity findDataByCode(String code,String account);

    HashMap listData(String account, int state);

    void createData(FabEntity fabEntity,List<FABRelevance> fabRelevances, MultipartFile[] files) throws ErrorDataException;

    void upData(FabEntity fabEntity,List<FABRelevance> fabRelevances, MultipartFile[] files,String[] delId) throws ErrorDataException;

    void delData(String[] id) throws ErrorDataException;

    void delImg(String id) throws ErrorDataException;


}
